﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyServer.Common
{
    /// <summary>
    /// 为连接事件提供事件数据
    /// </summary>
    public class ConnectEventArgs:EventArgs
    {
        /// <summary>
        /// 获取当前连接的连接信息
        /// </summary>
        public object Connect { get; private set; }
        /// <summary>
        /// 获取或设置该事件是否被暂停
        /// </summary>
        public bool Canceled { get; set; }
        /// <summary>
        /// 通过指定连接信息创建事件数据的实例
        /// </summary>
        /// <param name="Connect"></param>
        public ConnectEventArgs(object Connect)
        {
            this.Connect = Connect;
        }
    }
}
